package org.millioncall.yueyoga.admin.service.impl;

import org.millioncall.yueyoga.admin.dao.MemberGroupDAO;
import org.millioncall.yueyoga.admin.model.MemberGroup;
import org.millioncall.yueyoga.admin.service.MemberGroupService;

public class MemberGroupServiceImpl implements MemberGroupService {
	
	private MemberGroupDAO memberGroupDAO;

	public MemberGroupDAO getMemberGroupDAO() {
		return memberGroupDAO;
	}

	public void setMemberGroupDAO(MemberGroupDAO memberGroupDAO) {
		this.memberGroupDAO = memberGroupDAO;
	}

	@Override
	public int insert(MemberGroup record) {
		return this.memberGroupDAO.insert(record);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return this.memberGroupDAO.deleteByPrimaryKey(id);
	}

	@Override
	public int delete(MemberGroup record) {
		return this.memberGroupDAO.delete(record);
	}

	@Override
	public int getGroupMemberCount(MemberGroup record) {
		return this.memberGroupDAO.getGroupMemberCount(record);
	}

}
